package com.property.demo.service;

import com.property.demo.model.Building;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface BuildingService {
    
    List<Building> findAll();
    
    Page<Building> findAll(Pageable pageable);
    
    Page<Building> findByFilters(Long communityId, String name, Pageable pageable);
    
    Building findById(Long id);
    
    Building save(Building building);
    
    Building update(Long id, Building buildingDetails);
    
    void delete(Long id);
    
    List<Building> findByCommunityId(Long communityId);
    
    List<Building> findByNameContainingAndCommunityId(String name, Long communityId);
} 